{block content}
<h1 n:block="title">Novinky</h1>
<div id="news-wrapper">
    {if $allNews->count() > 0}
    <div n:foreach="$allNews as $news" class="news{if $iterator->isLast()} news-last{/if}">
        <h2 class="news-title">{$news->title}</h2>
        <span class="news-date">vloženo: {$news->inserted_date|date:'d.m.Y H:i:s'}</span>
        <p>
            {!$news->content}
        </p>
    </div>
    {else}
    <p>Zatím nebyly vloženy žádné novinky.</p>
    {/if}
</div>
{/block}
